package com.example.service.impl;

import com.baomidou.dynamic.datasource.annotation.DSTransactional;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.mysql.Factory;
import com.example.entity.yifei.Invmb;
import com.example.entity.yifei.Mocta2;
import com.example.mapper.*;
import com.example.mapper.hzViewSync.HzViewSyncMapper;
import com.example.mapper.pc.FactoryMapper;
import com.example.mapper.pc.ProductprocessresourceMapper;
import com.example.mapper.pc.ResourceMapper;
import com.example.mapper.pc.ResourcegroupMapper;
import com.example.service.*;
import com.example.service.pc.ProductprocessresourceService;
import com.example.service.pc.ResourceService;
import com.example.service.pc.ResourcegroupService;
import com.example.service.pc.WorkresourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lan
 * @since 2024-11-13
 */
@Service
public class Mocta2ServiceImpl extends ServiceImpl<Mocta2Mapper, Mocta2> implements Mocta2Service {

    @Autowired
    private ViewsynclogService viewsynclogService;
    @Autowired
    private WorkresourceService workresourceService;
    @Autowired
    private HzViewSyncMapper hzViewSyncMapper;
    @Autowired
    private ResourcegroupMapper resourcegroupMapper;
    @Autowired
    private ResourcegroupService resourcegroupService;
    @Autowired
    private ProductprocessresourceService productprocessresourceService;
    @Autowired
    private ProductprocessresourceMapper productprocessresourceMapper;
    @Autowired
    private TablesynclogService tablesynclogService;
    @Autowired
    private InvmbMapper invmbMapper;
    @Autowired
    private InvmbService invmbService;
    @Autowired
    private CmsmeMapper cmsmeMapper;
    @Autowired
    private CmsmvMapper cmsmvMapper;
    @Autowired
    private CmsmeService cmsmeService;
    @Autowired
    private CmsmvService cmsmvService;
    @Autowired
    private CmsmcMapper cmsmcMapper;
    @Autowired
    private CmsmcService cmsmcService;
    @Autowired
    private BommfMapper bommfMapper;
    @Autowired
    private BommfService bommfService;
    @Autowired
    private CmsmdService cmsmdService;
    @Autowired
    private CmsmdMapper cmsmdMapper;
    @Autowired
    private PurmaService purmaService;
    @Autowired
    private PurmaMapper purmaMapper;
    @Autowired
    private BommeMapper bommeMapper;
    @Autowired
    private BommeService bommeService;
    @Autowired
    private ResourceMapper resourceMapper;
    @Autowired
    private ResourceService resourceService;
    @Autowired
    private CoptdMapper coptdMapper;
    @Autowired
    private CoptdService coptdService;
    @Autowired
    private PurcdMapper purcdMapper;
    @Autowired
    private PurcdService purcdService;
    @Autowired
    private PurtdMapper purtdMapper;
    @Autowired
    private PurtdService purtdService;
    @Autowired
    private MoctaMapper moctaMapper;
    @Autowired
    private MoctaService moctaService;
    @Autowired
    private SfctaMapper sfctaMapper;
    @Autowired
    private SfctaService sfctaService;
    @Autowired
    private MoctbService moctbService;
    @Autowired
    private MoctbMapper moctbMapper;
    @Autowired
    private MoctyService moctyService;
    @Autowired
    private MoctyMapper moctyMapper;
    @Autowired
    private Mocta2Mapper mocta2Mapper;
    @Autowired
    private Mocta2Service mocta2Service;
    @Autowired
    private Moctb2Mapper moctb2Mapper;
    @Autowired
    private Moctb2Service moctb2Service;
    @Autowired
    private FactoryMapper factoryMapper;


    @DSTransactional
    @Override
    public void eps() {
        Factory factory = new Factory();
        factory.setFactoryid(10);
        factory.setFactoryno("fsdfdas");
        factory.setFactoryname("gg范德萨");
        factoryMapper.insert(factory);

        int i = 1 / 0;

        Invmb invmb = new Invmb();
        invmb.setMb001("dsgdsagdas");
        invmbMapper.insert(invmb);


    }
}
